package cn.bdqn.domain;

/**
 * 机构用户表
 * @author dkj
 */
public class User {

    /**
     * id
     */
    private Integer id;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 电子邮箱
     */
    private String email;

    /**
     * 所属机构id
     */
    private Integer groupId;

    /**
     * 密码
     */
    private String pwd;


    /**
     * 机构类型id标识  1.基地(自行注册) 2.学校 3.教体局 4.教育局
     */
    private Integer groupTypeId;

    /**
     * 角色id  1 管理员 2 二级管理 3 以此类推  此属性为后续扩展用
     */
    private Integer role;

    /**
     * 状态  0 正常  1 禁用
     */
    private Integer state;

    /**
     * 用户标识
     */
    private String token;


    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getGroupTypeId() {
        return groupTypeId;
    }

    public void setGroupTypeId(Integer groupTypeId) {
        this.groupTypeId = groupTypeId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd == null ? null : pwd.trim();
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", groupId=" + groupId +
                ", pwd='" + pwd + '\'' +
                ", groupTypeId=" + groupTypeId +
                ", role=" + role +
                ", state=" + state +
                '}';
    }
}
